/*
 * TaskThread.hpp
 *
 *  Created on: 15.12.2012
 *      Author: zheka
 */

#ifndef TASKTHREAD_HPP_
#define TASKTHREAD_HPP_

#include "pthread/Thread.hpp"

#include "EventDispatcher.hpp"
#include "pthread/Condition.hpp"
#include "util/Log.hpp"
class TaskThread: public Thread {
private:
	Condition condition;
	EventDispatcher dispatcher;

public:
	TaskThread() {
Log::v("created TaskThread");
	}
	void addTask(Task * task);
	virtual void run();

};

#endif /* TASKTHREAD_HPP_ */
